<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/24
  Time: 10:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div style="margin: 0px auto;height: 400px;width: 900px">
<c:forEach items="${foodList}" var="nn">
   <div style="float: left;width: 200px"> ${nn.name},<img src="upfiles/${nn.pic}">,${nn.merData.name},${nn.type.type} </div><br>
</c:forEach>
</div>

<div  style="text-align: center">
        <a href="FoodFenYeServlet?pageIndex=1">首页</a>|
        <a href="FoodFenYeServlet?pageIndex=${pageNum-1}">上一页</a>|
        <a href="FoodFenYeServlet?pageIndex=${pageNum+1}">下一页</a>|
        <a href="FoodFenYeServlet?pageIndex=${total}">尾页</a>
</div>

</body>
</html>
